<!--<?php print <<<EOT
--><!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$db_charset" />
<title>$webPageTitle - Powered by phpwind</title>
<meta name="generator" content="phpwind $wind_version" />
<meta name="description" content="$metaDescription" />
<meta name="keywords" content="$metaKeywords" />
<link rel='archives' title='$db_bbsname' href='$db_bbsurl/simple/' />
<base id="headbase" href="$db_bbsurl/" />
<style type="text/css" media="screen">
@import url($imgpath/pw_core.css);
@import url($imgpath/toolbar.css);
@import url($imgpath/g/g_style.css);
@import url($imgpath/g/{$colony[colonystyle]}/style.css);
</style>
<!--
EOT;
	$tplpath = L::style('tplpath');//取得论坛所设置的风格，保持风格一致
	if ("wind" != $tplpath && file_exists(D_P.'data/style/'.$tplpath.'_css.htm')) {
		$css_path = D_P.'data/style/'.$tplpath.'_css.htm';
	} else{
		$css_path = D_P.'data/style/wind_css.htm';
	}
	@include Pcv(D_P.'data/style/'.$tplpath.'.php');
	@include Pcv($css_path);
print <<<EOT
-->
<script type="text/javascript" language="JavaScript" src="js/core/core.js"></script>
<script type="text/javascript" language="JavaScript" src="js/pw_ajax.js"></script>
<script language="JavaScript">
var imgpath = '$imgpath';
var verifyhash = '$verifyhash';
var modeimg = '$pwModeImg';
var modeBase = '$baseUrl';
var winduid = '$winduid';
var windid	= '$windid';
var groupid	= '$groupid';
var basename = '$basename';
var temp_basename = '$temp_basename';
</script>
</head>
<body onKeyDown="try{keyCodes(event);}catch(e){}">
<div class="wrap">
<!--
EOT;
//引用开心伴读公共header，保持风格一致
global $kxbdChannelName;//这个变量是定义动态logo的
if (!$kxbdChannelName){
	$kxbdChannelName='groups';
}
@include R_P.'mode/kxbd/common/kxbd_header_nav.htm';
print <<<EOT
-->

<!--
EOT;
$style_banner = $colony['banner'] ? " style=\"background:url({$colony[banner]}) repeat;\"" : '';
print <<<EOT
-->
<div class="main-wrap">
    <div id="main" class="cc">
		<script type="text/javascript" src="js/pw_lwd.js"></script>
		<div id="breadCrumb" class="cc">
			<ul class="fr">
				<li><a href="apps.php?q=groups&a=my" class="b"><img src="images/g/mygroup.png" align="absmiddle" /> 我的群组</a></li>
				<li><a href="group.php?q=all">所有群组</a></li>
			</ul>
			<img id="td_cate" align="absmiddle" src="images/wind/thread/home.gif" alt="forumlist" class="cp breadHome" />
			<em class="breadEm"></em>
<!--
EOT;
($firstCateId = $o_styledb[$colony['styleid']]['upid']) && $firstCategory = '<em>&gt;</em><a href="group.php?q=all&styleid=' . $firstCateId . '">' . $o_styledb[$firstCateId]['cname'] . '</a>';
$secondCategory = '<em>&gt;</em><a href="group.php?q=all&styleid=' . $colony['styleid'] . '">' . $o_styledb[$colony['styleid']]['cname'] . '</a>';
print <<<EOT
-->
			<a href="group.php">群组首页</a>
			$firstCategory
			$secondCategory
		</div>
		<div id="banner_class"{$style_banner}>
			<div class="bannerBg"></div>
			<div class="sub">
				<span class="btn_add2 fr"><span><button onClick="location.href='apps.php?q=group&cyid=$cyid&a=invite';">邀请朋友加入</button></span></span>
<!--
EOT;
if (!$colony['ifcyer'] && $colony['ifcheck'] > 0) {print <<<EOT
-->
				<span class="btn_add2 fr"><span><button id="joincolony" onClick="sendmsg('apps.php?q=group&cyid=$cyid&a=join','',this.id);">申请加入</button></span></span>
<!--
EOT;
}print <<<EOT
-->
				<h2>$colony_name</h2>
				<p>$descrip</p>
				<cite class="mr5">$db_bbsurl/apps.php?q=group&cyid=$cyid</cite>
				<a id="bookmarkExplore" href="javascript:;" onClick="Addtoie('$db_bbsurl/apps.php?q=group&cyid=$cyid','群组{$favortitle}首页');" class="mr5">[收藏]</a>
				<a href="javascript:;" onClick="copyUrl('$db_bbsurl/apps.php?q=group&cyid=$cyid')">[复制]</a>
			</div>
		</div>
		<div class="g_navA" id="g_navA">
<!--
EOT;
if($a == 'thread') {print<<<EOT
-->
			<span class="btn_add2 fr" style="margin:-5px 0 0 0;_position:relative;"><span><button type="button" onClick="checkPostRight();">发表话题</button></span></span>
<SCRIPT LANGUAGE="JavaScript">
function checkPostRight() {
	ajax.send('apps.php?q=group&a=checkpostright&cyid=$cyid','',function(){
		if (ajax.request.responseText == 'ok'){
			window.location = 'apps.php?q=group&a=post&cyid=$cyid';
		} else {
			showDialog('error',ajax.request.responseText);
		}
	});
}
</SCRIPT>
<!--
EOT;
} else {
if($db_share_open && !$shareGM && !in_array($a,array('read','view'))){print<<<EOT
-->
			<span class="fr"><a href="apps.php?q=collection&a=favor&type=group&ajax=1&id=$cyid" onClick="return ajaxurl(this)" class="shareA">收藏<span>+</span></a></span>
      
            
            
<!--
EOT;
}if($_G['allowreport'] && !in_array($a,array('read','view'))){print <<<EOT
-->
			<a href="javascript:;" onClick="sendmsg('pw_ajax.php?action=report&type=group&tid=$cyid&own={$colony[admin]}','',this.id);" class="fr mr10">！举报</a>
<!--
EOT;
}}print<<<EOT
-->
			<ul>
				<li id="g_index"><a href="apps.php?q=group&cyid=$cyid">首页</a></li>
<!--
EOT;
foreach ($groupRight['modeset'] as $key => $value) {
if ($value['ifopen']) {
$tmpUrl = ($key == 'galbum') ? "apps.php?q=galbum" : "apps.php?q=group&a=$key";
print <<<EOT
-->
				<li id="g_{$key}"><a href="{$tmpUrl}&cyid=$cyid" hidefocus="true">{$value['title']}</a></li>
<!--
EOT;
}}if ($ifadmin) {print <<<EOT
-->
				<li  id="g_set"><a href="apps.php?q=group&a=set&cyid=$cyid">管理</a></li>
<!--
EOT;
}if($cnclass['fid'] && $colony['classid'] && $groupRight['modeset']['thread']['ifopen'] && empty($colony['viewtype'])){print <<<EOT
-->
				<li class="one"><a href="$tmpActionUrl" hidefocus="true">切换至论坛视图</a></li>
<!--
EOT;
}print <<<EOT
-->
			</ul>
		</div>
		<div class="c"></div>
<script language="JavaScript">
if(is_webkit)
	getObj('bookmarkExplore').parentNode.removeChild(getObj('bookmarkExplore'));
var copyurl = '';
setCurrent('g_{$a_key}','g_index','current');
</script>
<!--
EOT;
?>
-->